package com.hcb.micro.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.AccountMapper;
import com.hcb.micro.dto.Account;
import com.hcb.micro.service.IAccountService;

@Service("AccountService")
public class AccountServiceImpl implements IAccountService {

	@Autowired
	AccountMapper Accountmapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return Accountmapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Account record) {
		return Accountmapper.insert(record);
	}

	@Override
	public int insertSelective(Account record) {
		return Accountmapper.insertSelective(record);
	}

	@Override
	public Account selectByPrimaryKey(Integer id) {
		return Accountmapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Account record) {
		return Accountmapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Account record) {
		return Accountmapper.updateByPrimaryKey(record);
	}

}
